package com.taowan.xunbaozl.morning_speak.design_pattern.day08;

/**
 * Created by diql on 2016/3/2.
 */
public class Duck extends Bird {

    public Duck(int weight) {
        this.weight = weight;
    }

    @Override
    public void getWeight() {
        System.out.println("这是一只" + weight + "斤重的鸭子！");
    }
}
